#!/bin/bash
cd /root/projects/notes
GIT_RESULT=$(git pull)
if [ "$GIT_RESULT" != "Already up to date." ]; then
    echo "notes is update"
    sudo pnpm docs:build
    chmod -R 755 src/.vuepress/dist
    echo "notes update finish"
else
   echo "notes not update"
fi
